notebook: Respect left border when allocating tab widgets
authorBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 07:38:56 +0000 (09:38 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 29 Apr 2011 09:05:36 +0000 (11:05 +0200)
This mirrors the code for the other tab locations.

gtk/gtknotebook.c

index 2d4530c5c2030c37990e975bc632a96605ada474..b24a828b7df0744406062736dd9cb53c4998f3e9 100644 (file)
@@ -6202,8 +6202,9 @@ gtk_notebook_page_allocate (GtkNotebook     *notebook,
       if (tab_pos == GTK_POS_LEFT)
         child_allocation.x += tab_padding.left + focus_width + focus_padding;
 
-      child_allocation.width = MAX (1, (page->allocation.width - tab_padding.right -
-                                        2 * (priv->tab_hborder + focus_width + focus_padding)));
+      child_allocation.width = MAX (1, (page->allocation.width -
+                                         tab_padding.left - tab_padding.right -
+                                         2 * (priv->tab_hborder + focus_width + focus_padding)));
       break;
     }